# -*- coding: UTF-8 -*-
# Project : bio_tc
# File : sha.py
# IDE : PyCharm
# Author : 博科（鑫贝西）田聪
# Date : 2021/11/25 15:25
from hashlib import sha1


def sha_1(*args):
    d = ''.join([str(i) for i in args])
    sha = sha1()
    sha.update(d.encode())

    return sha.hexdigest()

if __name__ == '__main__':

    print(sha_1(1,2,3,4))